package cn.portx.frame.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.bstek.bdf3.saas.domain.DataSourceInfo;
import com.bstek.bdf3.saas.domain.Organization;
import com.bstek.dorado.annotation.PropertyDef;

import cn.portx.entity.BaseEntity;

@Entity
@Table(name = "T_COMPANY")
public class Company extends BaseEntity {

	private static final long serialVersionUID = 308695007054569191L;

	@Column(name = "ORG_ID_", length = 60)
	private String orgId;

	@Column(name = "FULL_NAME_", length = 240)
	@PropertyDef(label = "全称")
	private String fullName;

	@Column(name = "TEL_", length = 60)
	@PropertyDef(label = "联系电话")
	private String tel;

	@Column(name = "ADDRESS_", length = 240)
	@PropertyDef(label = "地址")
	private String address;

	@Column(name = "ENABLE_", length = 1)
	@PropertyDef(label = "启用")
	private String enable;

	@Transient
	private Organization org;

	public Organization getOrg() {
		return org;
	}

	public void setOrg(Organization org) {
		this.org = org;
	}

	public String getEnable() {
		return enable;
	}

	public void setEnable(String enable) {
		this.enable = enable;
	}

	public String getOrgId() {
		return orgId;
	}

	public void setOrgId(String orgId) {
		this.orgId = orgId;
	}

	public String getFullName() {
		return fullName;
	}

	public void setFullName(String fullName) {
		this.fullName = fullName;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

}
